import request from '@/utils/request'

// 获取月卡信息列表
export const getCardListAPI = params => {
  return request.get('/parking/card/list', { params })
}

// 添加月卡
export const addCardAPI = data => {
  return request.post('/parking/card', data)
}

// 获取月卡详情
export const getCardDetailAPI = id => {
  return request.get(`/parking/card/detail/${id}`)
}

// 编辑月卡
export const editCardAPI = data => {
  return request.put('/parking/card/edit', data)
}

// 删除月卡
export const delCardAPI = id => {
  return request.delete(`/parking/card/${id}`)
}
